import Taro from '@tarojs/taro-rn';
import React from 'react';
import { Component } from "@tarojs/taro-rn";
import { View, Image } from "@tarojs/components-rn";
import { getRuntime } from "../../utils/common";
import welfare_successStyleSheet from "./welfare_success_styles";

import success_icon from '../../assets/img/icon_72.png';
// 工程金融中心-首页
var _styleSheet = welfare_successStyleSheet;
let Success = class Success extends Component {
  constructor(props) {
    super(props);
  }
  componentWillMount() {
    Taro.setNavigationBarTitle({ title: '申请已提交成功' });
  }
  handelRouter(url = '/pages/index/index') {
    getRuntime().navigateTo(url);
  }
  render() {
    return <View style={_styleSheet["welfare-success"]}>
      <View style={_styleSheet["apply-success"]}>
        <View style={_styleSheet["content"]}>
          <Image src={success_icon} style={_styleSheet["success-icon"]} />
          <View style={_styleSheet["title"]}>您的申请已提交成功</View>
          <View style={_styleSheet["desc"]}>请等待工资人员审核，审核成功后以投票决定~</View>
        </View>
        <View onClick={this.handelRouter.bind(this, '/pages/public_welfare/index')} style={_styleSheet["btn-group"]}>
          <View style={[_styleSheet["btn"], _styleSheet["btn-line-submit"]]}>完成</View>
        </View>
      </View>
    </View>;
  }
};

export default Success;